package com.sisgesbyte.data.entity.tecnico;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedNativeQuery;


@Entity
@NamedNativeQuery(name = "tecnico.obtenerMenuSistema", 
		query = "select m.id,m.nombre,m.descripcion,m.summary,"
				+ "m.version,m.icon,m.orden,m.url,m.tipo "
				+ "from tecnico.modulo m "+ 
				"inner join seguridad.acceso_modulo am "+
				"on am.modulo_id=m.id "+
				"where m.active=true "+ 
				"and am.active=true "+
				"and am.rol_id=:codRol "+
				"order by m.orden asc", resultClass = ModulosEntity.class)
public class ModulosEntity implements Serializable{

	private static final long serialVersionUID = 1L;
	
	@Id
	private int id;
	private String nombre;
	private String descripcion;
	private String summary;
	private String version;
	private String icon;
	private int orden;
	private String url;
	private int tipo;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getNombre() {
		return nombre;
	}
	public void setNombre(String nombre) {
		this.nombre = nombre;
	}
	public String getDescripcion() {
		return descripcion;
	}
	public void setDescripcion(String descripcion) {
		this.descripcion = descripcion;
	}
	public String getSummary() {
		return summary;
	}
	public void setSummary(String summary) {
		this.summary = summary;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public int getOrden() {
		return orden;
	}
	public void setOrden(int orden) {
		this.orden = orden;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public int getTipo() {
		return tipo;
	}
	public void setTipo(int tipo) {
		this.tipo = tipo;
	}

}
